#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : micah
# @time    : 2023/11/25 23:52
# @function: the script is used to do something.
# @version : 


import requests

url = 'http://www.cninfo.com.cn/new/commonUrl?url=disclosure/list/notice'
headers = {
    # 'Cookie': 'JSESSIONID=B74FE013818F4C062589880CB593A0BD; insert_cookie=37836164; _sp_ses.2141=*; '
    #           'routeId=.uc2; SF_cookie_4=90357558; _sp_id.2141=e332ff93-d423-4d05-8597-e7a4476f7845.1700063144.3.1701440510.1700923179.f1cfd643-5be5-4d61-9db3-6d7fb563d210',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36'
}
# 1.请求头带上cookie
# response = requests.get(url, headers=headers)

# 2.穿件cookie字典,请求cookie
cookies = {
    #
    'JSESSIONID': '204BABEA1EEB56A40A98F189227102C',
    #
    'insert_cookie': '45380249',
    #
    'routeId': '.uc1',
    #
    '_sp_ses.2141': '*',
    #
    '_sp_id.2141': '4d159bf3-398b-4dd5-8e07-78ee07cbcbf9.1662302323.3.1662383561.1662359150.afa633dd-c1a8-4d81-90a7-01b0c3630055'
}
response = requests.get(url, headers=headers, cookies=cookies)
print(response.text)
